General Keywords

var

  • Type inference.

var a = 10;
  • Compile-time type:

    • System.Int32

readonly

  • Field cannot be modified after constructor.

  • Runtime.

readonly int value;

const

  • Compile-time constant.

const int Max = 10;